﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Stats.aspx.cs" Inherits="Stats" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
	<table style="width: 100%;">
	<tr>
	<td style="vertical-align:top; width: 50%;">
	Traffic by Month: <br />
	<asp:DataGrid ID="dgHits" runat="server" width="100%" OnPreRender="dgHits_PreRender" CellPadding="4" ForeColor="#333333" GridLines="None">
		<AlternatingItemStyle BackColor="White" />
		<EditItemStyle BackColor="#2461BF" />
		<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
		<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
		<ItemStyle BackColor="#EFF3FB" />
		<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
		<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
	</asp:DataGrid>

	<asp:Chart ID="cTrafficByMonth" runat="server" ImageStorageMode="UseImageLocation" ImageLocation="Graph" Width="500" TextAntiAliasingQuality="High" AlternateText="Traffic by Month" AntiAliasing="All" >
		<Series>
			<asp:Series Name="Humans" ChartType="Line" Color="Red" ToolTip="Human traffic" />
			<asp:Series Name="Spiders" ChartType="Line" Color="DarkBlue" ToolTip="Spider traffic" />
			<asp:Series Name="Total" ChartType="Line" Color="Green" ToolTip="Total traffic" />
		</Series>
		<ChartAreas>
			<asp:ChartArea Name="ChartArea1">
				<AxisY Title="Distinct Sessions" />
				<AxisX LabelAutoFitStyle="LabelsAngleStep90" />
			</asp:ChartArea>
		</ChartAreas>
		<Legends>
			<asp:Legend Docking="Bottom" Alignment="Center" />
		</Legends>
	</asp:Chart>
	
	<br /><br />

	Current positions for tracked search queries:
	<asp:DataGrid ID="dgSearchStatus" runat="server" Width="100%" OnItemDataBound="dgSearchStatus_ItemDataBound" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="false">
		<AlternatingItemStyle BackColor="White" />
		<EditItemStyle BackColor="#2461BF" />
		<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
		<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
		<ItemStyle BackColor="#EFF3FB" />
		<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
		<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
		<Columns>
			<asp:BoundColumn DataField="Rank" HeaderText="Rank" />
			<asp:BoundColumn DataField="Engine" HeaderText="Engine" />
			<asp:BoundColumn DataField="Query" HeaderText="Query" />
		</Columns>
	</asp:DataGrid>
	<br /><br />

	Recent referrers:
	<asp:DataGrid ID="dgReferrers" runat="server" Width="100%" 
			OnItemDataBound="dgReferrers_ItemDataBound" 
			CellPadding="4" ForeColor="#333333" GridLines="None">
		<AlternatingItemStyle BackColor="White" />
		<EditItemStyle BackColor="#2461BF" />
		<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
		<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
		<ItemStyle BackColor="#EFF3FB" />
		<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
		<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
	</asp:DataGrid>
	
	</td><td style="vertical-align:top;">
		Recent search queries:
	<asp:DataGrid ID="dgSearches" runat="server" width="100%" OnItemDataBound="dgSearches_ItemDataBound" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="false">
		<AlternatingItemStyle BackColor="White" />
		<EditItemStyle BackColor="#2461BF" />
		<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
		<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
		<ItemStyle BackColor="#EFF3FB" />
		<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
		<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
		<Columns>
			<asp:BoundColumn DataField="Engine" HeaderText="Engine" />
			<asp:BoundColumn DataField="Query" HeaderText="Query" />
		</Columns>
	</asp:DataGrid>
	<br /><br />
</td></tr></table>
	
</asp:Content>

